package com.followmeandroid.messages;

import java.util.UUID;

/**
 * <p>Title: AddFriendRequest</p>
 * <p>Description: This class contains the data necessary
 * to send the server for a new friend request</p>
 * @author Adam Drews
 * @email adam.drews@my.uwrf.edu
 * @date 11/17/2014
 * @team Tyler Johnson
 * @email tyler.johnson@my.uwrf.edu
 * @team Nicholas Thorp
 * @email nicholas.thorp@my.uwrf.edu
 */
public class AddFriendRequest extends ARequestBase {
    private String NewFriend;

    /**
     * Constructer with a string parameter representing
     * the name of the friend to be added.
     * @param newfriend     The name of the friend to be added.
     */
    public AddFriendRequest(String newfriend){
        NewFriend = newfriend;
    }

    /**
     * Contructor with a UUID parameter that gets parsed as
     * a string, with the ID of the friend to be added.
     * @param newfriend     The UUID of the friend to be added.
     */
    public AddFriendRequest(UUID newfriend){
        NewFriend = newfriend.toString();
    }

    /**
     *
     * @return NewFriend
     */
    public String getNewFriend() {
        return NewFriend;
    }

    /**
     * Returns the name of the friend to be added.
     * @param newFriend     The name of the friend to be added.
     */
    public void setNewFriend(String newFriend) {
        NewFriend = newFriend;
    }


}
